# -*- encoding:utf-8 -*-
# @Time: 2022/11/1 22:23
# @Author : renyuxuan
# @Email: renyuxuan@maqu.com
# @File: urls.py
# @Software: PyCharm

from django.urls import path
#url优化
from rest_framework.routers import DefaultRouter
from .views import ClassesViewSet

urlpatterns = [
    #path('students/', StudentViewSet.as_view({'get': 'list','post':'create'})),
    #path('students/<pk>',StudentViewSet.as_view({'get':'retrieve','put':'update','delete':'destroy'}))
]
router = DefaultRouter()#创建路由器
router.register('classes',ClassesViewSet) #注册路由器
urlpatterns += router.urls